#ifndef FORMFILESMANAGER_H
#define FORMFILESMANAGER_H

#include <QWidget>

#include <dcsdb/dcsdboperator.h>
#include <filecopy.h>

namespace Ui
{
    class FormFilesManager;
}

class FormFilesManager : public QWidget
{
Q_OBJECT

public:
    explicit FormFilesManager(QWidget *parent = nullptr);

    ~FormFilesManager() override;

private slots:

    void onPushButtonReturnClicked();

    static void onComboBoxMainSrcCurrentIndexChanged(int index);

    static void onComboBoxBakSrcCurrentIndexChanged(int index);

    void onPushButtonCopyClicked();

    void onPushButtonCleanClicked();

    void onProgressUpdate(int flag, const QString &txt);

private:
    Ui::FormFilesManager *ui;
    DCSDbOperator *mDbopt;
    FileManageThread *mFileCopy;
};

#endif // FORMFILESMANAGER_H
